<script setup lang="ts">
import type { HomeChatMessageList } from '#build/components';

const messageListRef = ref<InstanceType<typeof HomeChatMessageList>>();

const refresh = () => {
    messageListRef.value?.refresh();
};
</script>

<template>
    <home-chat-message-list ref="messageListRef" />
    <div class="h-full flex-auto overflow-x-hidden">
        <NuxtPage @change="refresh" :session="messageListRef?.current" />
    </div>
</template>